import React,{ Component } from 'react'


class UserDetail extends Component {

    render() {
        return (
            <div>
                {this.props.users.map((item, index) => {
                    if(item.id === this.props.selectId) {
                        return <div key={item.id}>{item.id + '  ' + item.name}</div>
                    }
                    return ''
                })}
            </div>
        )
    }
}

export default UserDetail